package com.gxa.modules.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gxa.modules.sys.entity.Area;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("coupon")
@ApiModel("卡劵模型")
public class CouponDto {

    @TableField("id")
    @ApiModelProperty("卡劵id")
    private Integer id;

    @TableField("name")
    @ApiModelProperty("卡劵名称")
    private String name;

    @TableField("price")
    @ApiModelProperty("价格")
    private double price;

    @TableField("state")
    @ApiModelProperty("卡劵状态：0表示停售、1表示售卖中")
    private Integer state;

    @TableField("usable")
    @ApiModelProperty("卡劵可用日（周1/周2/周3/周4/周5）")
    private String usable;

    @TableField("create_time")
    @ApiModelProperty("卡劵创建日期")
    private Date createTime;

    @TableField("expire_time")
    @ApiModelProperty("卡劵过期日期")
    private Date expireTime;

    @ApiModelProperty("区域")
    private Integer areaId;

}
